<template>
  <div>
    <el-dialog title="添加分类" :visible.sync="addSubclassDialog" width="35%" @close="close">
        <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="所属分类">
              <el-select v-model="model" placeholder="">
                  <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
                  </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="名称">
              <el-input placeholder="" style="width:85%"></el-input>
            </el-form-item>
            <el-form-item label="排序">
              <el-input placeholder="" style="width:85%"></el-input>
            </el-form-item>
            <el-row :gutter="10" type="flex" justify="center">
              <el-button type="primary" size="small">保存</el-button>
              <el-button @click="close" size="small">取消</el-button>
            </el-row>
        </el-form>
    </el-dialog>
  </div>
</template>

<script>
export default {
  props: {
    addSubclassDialog: {
      type: Boolean,
    },
  },
  data() {
    return {
      
    };
  },
  methods: {
    close() {
        this.$emit("update:addSubclassDialog", false);
      },
  }
};
</script>

<style scoped>

</style>
